package com.shop.front.request.store;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel("产品列表请求参数")
@Data
public class StoreProductReq {

    @ApiModelProperty(value = "搜索关键词", required = false)
    private String name;

    @ApiModelProperty(value = "类别id", required = false)
    private String cateSign;

    @ApiModelProperty(value = "类别id", hidden = true)
    private Long cateId;

    @ApiModelProperty(value = "拼团id", required = false)
    private String pinkSign;

    @ApiModelProperty(value = "拼团id", hidden = true)
    private Long pinkId;

    @ApiModelProperty(value = "排序规则 0 默认 1 销量降序 2 价格降序 3 价格升序", required = false)
    private Integer sortId;

    @ApiModelProperty(value = "是否热门产品", required = false)
    private Integer isHot;

    @ApiModelProperty(value = "是否精选产品", required = false)
    private Integer isBest;

    @ApiModelProperty(value = "是否新品产品", required = false)
    private Integer isNew;

    @ApiModelProperty(value = "是否推荐产品", required = false)
    private Integer isGood;

    @ApiModelProperty(value = "是否积分产品", required = false)
    private Integer isIntegral;

    @ApiModelProperty(value = "是否爆款推荐", required = false)
    private Integer isHotIntegral;


    @ApiModelProperty(value = "最低价", required = false)
    private String minPrice;

    @ApiModelProperty(value = "最高价", required = false)
    private String maxPrice;

    public static StoreProductReq hotList() {
        StoreProductReq req = new StoreProductReq();
        req.setIsHot(1);
        return req;
    }

    public static StoreProductReq hotIntegralList() {
        StoreProductReq req = new StoreProductReq();
        req.setIsHotIntegral(1);
        return req;
    }

    public static StoreProductReq bestList() {
        StoreProductReq req = new StoreProductReq();
        req.setIsIntegral(1);
        return req;
    }

    public static StoreProductReq newList() {
        StoreProductReq req = new StoreProductReq();
        req.setIsNew(1);
        return req;
    }

    public static StoreProductReq goodList() {
        StoreProductReq req = new StoreProductReq();
        req.setIsGood(1);
        return req;
    }

}
